﻿using EShop.Net.Model.Entity;
using Microsoft.Extensions.FileProviders;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace EShop.Net.IServices.Advert
{
    /// <summary>
    /// 广告表业务逻辑  接口
    /// </summary>
    public interface IAdvertService
    {
        /// <summary>
        /// 首页获取广告图
        /// </summary>
        /// <param name="host">项目域名</param>
        /// <param name="rootPath">Api项目根路径</param>
        /// <returns></returns>
        Task<List<Advertisement>> SelectAdvert(string host, IFileProvider rootPath);
    }
}
